package net.csdn.business.common.domain.request.issue;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author likun
 * @date 2022/12/28 14:56
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class IssueUpdatePinRequestDto implements Serializable {
    @NotBlank(message = "issueId 不合法")
    private String issueId;

    @NotNull(message = "不合法")
    @Range(min = 0, max = 1, message = "pin 不合法")
    private Integer pin;

    @NotBlank(message = "uid 不合法")
    @Length(min = 24, max = 24, message = "uid 不合法")
    private String uid;
}